package com.ruoyi.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.merchant.mapper.ShopVerificationRecordMapper;
import com.ruoyi.merchant.domain.ShopVerificationRecord;
import com.ruoyi.merchant.service.IShopVerificationRecordService;

/**
 * 核销记录Service业务层处理
 * 
 * @author Wevon
 * @date 2024-09-11
 */
@Service
public class ShopVerificationRecordServiceImpl implements IShopVerificationRecordService 
{
    @Autowired
    private ShopVerificationRecordMapper shopVerificationRecordMapper;

    /**
     * 查询核销记录
     * 
     * @param id 核销记录主键
     * @return 核销记录
     */
    @Override
    public ShopVerificationRecord selectShopVerificationRecordById(Long id)
    {
        return shopVerificationRecordMapper.selectShopVerificationRecordById(id);
    }

    /**
     * 查询核销记录列表
     * 
     * @param shopVerificationRecord 核销记录
     * @return 核销记录
     */
    @Override
    public List<ShopVerificationRecord> selectShopVerificationRecordList(ShopVerificationRecord shopVerificationRecord)
    {
        return shopVerificationRecordMapper.selectShopVerificationRecordList(shopVerificationRecord);
    }

    /**
     * 新增核销记录
     * 
     * @param shopVerificationRecord 核销记录
     * @return 结果
     */
    @Override
    public int insertShopVerificationRecord(ShopVerificationRecord shopVerificationRecord)
    {
        return shopVerificationRecordMapper.insertShopVerificationRecord(shopVerificationRecord);
    }

    /**
     * 修改核销记录
     * 
     * @param shopVerificationRecord 核销记录
     * @return 结果
     */
    @Override
    public int updateShopVerificationRecord(ShopVerificationRecord shopVerificationRecord)
    {
        return shopVerificationRecordMapper.updateShopVerificationRecord(shopVerificationRecord);
    }

    /**
     * 批量删除核销记录
     * 
     * @param ids 需要删除的核销记录主键
     * @return 结果
     */
    @Override
    public int deleteShopVerificationRecordByIds(Long[] ids)
    {
        return shopVerificationRecordMapper.deleteShopVerificationRecordByIds(ids);
    }

    /**
     * 删除核销记录信息
     * 
     * @param id 核销记录主键
     * @return 结果
     */
    @Override
    public int deleteShopVerificationRecordById(Long id)
    {
        return shopVerificationRecordMapper.deleteShopVerificationRecordById(id);
    }
}
